package com.CST.service.impl.cb;

import com.CST.common.api.ResultObject;
import com.CST.entity.cb.EtlDepartment;
import com.CST.mapper.cst.cb.EtlDepartmentMapper;
import com.CST.service.cb.IEtlDepartmentService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class EtlDepartmentServiceImpl extends ServiceImpl<EtlDepartmentMapper, EtlDepartment> implements IEtlDepartmentService {
    
    @Autowired
    private EtlDepartmentMapper etlDepartmentMapper;
    
    @Override
    public ResultObject listEtlDepartmentFuzzy(EtlDepartment etlDepartment) {
        List<EtlDepartment> etlDepartmentList = etlDepartmentMapper.listEtlDepartmentFuzzy(etlDepartment);
        return ResultObject.successReturn(etlDepartmentList);
    }

    @Override
    public ResultObject listEtlDepartment(EtlDepartment etlDepartment) {
        List<EtlDepartment> etlDepartmentList = etlDepartmentMapper.listEtlDepartment(etlDepartment);
        return ResultObject.successReturn(etlDepartmentList);
    }
}
